package com.eight.travel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eight.travel.pojo.Admin;
import com.eight.travel.pojo.User;
import com.eight.travel.utils.BaseResp;

import javax.mail.MessagingException;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;

/**
 * @author Q小旭
 * @version 1.0
 */
public interface UserService extends IService<User> {
    //发送邮件
    BaseResp sendMail(String mail,HttpServletRequest request) throws MessagingException;
    //用户登录
    BaseResp login(User user, ServletContext servletContext);
    //用户注册
    BaseResp register(User user);
    //分页查询所有用户
    BaseResp findAll(Integer page,Integer size);
    //删除用户
    BaseResp deleteById(User user);

}
